package com.codinghero.zqlb.weibo.sina.dto;

import java.util.Date;

import com.codinghero.sql.annotation.Table;
import com.codinghero.util.DateUtils;
import com.codinghero.zqlb.match.DateSortable;

@Table(name = "zqlb_weibo")
public class Weibo implements DateSortable {
	private Long id;
	private Integer curDate;
	private String des;
	private Integer status = 0;
	private Integer seq = 0;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getCurDate() {
		return curDate;
	}

	public void setCurDate(Integer curDate) {
		this.curDate = curDate;
	}

	public void setCurDate(Date curDate) {
		this.curDate = Integer.parseInt(DateUtils.getDateStr(curDate, "yyyyMMdd"));
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	@Override
	public Date fetchSortedDate() {
		return DateUtils.getDate(this.curDate.toString(), "yyyyMMdd");
	}

}
